//
//  FGLanguageTool.h
//  NewProject
//
//  Created by 钱金军 on 2018/8/25.
//  Copyright © 2018年 钱金军. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface FGLanguageTool : NSObject
#define NSLocalizedString(key, comment) [[NSBundle mainBundle] localizedStringForKey:(key) value:@"" table:nil]

//#define FGGetStringWithKeyFromTable(key, tbl)
//[[FGLanguageTool sharedInstance] getStringForKey:key withTable:tbl]

//[[NSBundle mainBundle] localizedStringForKey:(key) value:@"" table:nil]

@property(nonatomic, strong)NSString *language;

+(id)sharedInstance;

/**
 *  返回table中指定的key的值
 *
 *  @param key   key
 *  @param table table
 *
 *  @return 返回table中指定的key的值
 */
-(NSString *)getStringForKey:(NSString *)key withTable:(NSString *)table;

/**
 *  改变当前语言
 */
-(void)changeNowLanguage;

/**
 *  设置新的语言
 *
 *  @param language 新语言
 */
-(void)setNewLanguage:(NSString*)language;
@end
